
//tab选项卡的单击函数
 function addTab_public(title, href, iconCls, iframe){
    var tabPanel = parent.$('#wu-tabs');
    if(!tabPanel.tabs('exists',title)){
        var content = '<iframe scrolling="auto" frameborder="0"  src="'+ href +'" style="width:100%;height:100%;"></iframe>';
        if(iframe){
            tabPanel.tabs('add',{
                title:title,
                content:content,
                iconCls:iconCls,
                fit:true,
                cls:'pd3',
                closable:true
            });
        }
        else{
            tabPanel.tabs('add',{
                title:title,
                href:href,
                iconCls:iconCls,
                fit:true,
                cls:'pd3',
                closable:true
            });
        }
    }
    else {
        //对tabs标签的重载
        tabPanel.tabs('select',title);
        var newsTab = tabPanel.tabs('getTab', title);
        tabPanel.tabs('update',{
             tab:newsTab,
             options : {
                  content : '<iframe scrolling="auto" frameborder="0"  src="'+href+'" style="width:100%;height:100%;"></iframe>',  
                     // href : href
             }
        });
    }
   
}
